#
# Copyright 2013 - Tom Alessi
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
   # User login
    url(r'^accounts/login/$',       'django.contrib.auth.views.login'),

    # User logout
    url(r'^accounts/logout/$',      'django.contrib.auth.views.logout',{'next_page': '/'}),

    # Standard admin site
    url(r'^admin/',                 include(admin.site.urls)),

    # Main index page
    url(r'^$',                      'berper.main.views.main.index'),

    # Reports
    url(r'^reports/report$',        'berper.main.views.reports.report'),
    url(r'^reports/sscans/$',       'berper.main.views.reports.sscans'),
    url(r'^reports/tscans/$',       'berper.main.views.reports.tscans'),
    url(r'^reports/not_found/$',    'berper.main.views.reports.not_found'),

    # berper Admin Pages
    url(r'^adm/config$',            'berper.main.views.adm.config'),
    url(r'^adm/scheduler$',         'berper.main.views.adm.scheduler'),
    url(r'^adm/sscans/$',           'berper.main.views.adm.sscans'),
    url(r'^adm/sscan_delete$',      'berper.main.views.adm.sscan_delete'),
    url(r'^adm/sscan_modify$',      'berper.main.views.adm.sscan_modify'),
    url(r'^adm/tscans/$',           'berper.main.views.adm.tscans'),
    url(r'^adm/tscan_delete$',      'berper.main.views.adm.tscan_delete'),
    url(r'^adm/tscan_list/$',       'berper.main.views.adm.tscan_list'),
    url(r'^adm/tscan_modify$',      'berper.main.views.adm.tscan_modify'),
)